package com.zxl.gtion.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * (ArticleInfo)表实体类
 *
 * @author 
 * @since 2024-03-06 16:42:52
 */
@Data
public class ArticleInfo extends BaseDomain {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //标题
    private String title;
    //封面
    private String cover;
    //发布人id
    private Integer issueUserId;
    //作者
    private String author;
    //发布时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime issueTime;
    //观看数
    private Integer watchNum;
    //点赞量
    private Integer likeNum;
    //分享量
    private Integer shareNum;
    // 文章内容
    @TableField(exist = false)
    private String content;


    @TableField(exist = false)
    private LocalDate time;
}

